package com.oglvip.business.consts.common;

/**
 *
 */
public enum ResponseCode {
    //基础状态码
    SUCCESS(0,"数据正常"),
    WRONG_PARAM(400,"参数有误"),
    SERVER_ERROR(500,"服务器繁忙"),
    //成功类的信息以2开头
    //交换类信息以3开头
    //AUDITION_CLOSED(311,"海选已关闭"),
    //请求错误信息4开头
    UNAUTHORIZED(401,"请登录"),
    //服务器错误以5开头
    LOGIN_FAILED(501,"登陆失败");





    private final Integer code;
    private final String info;
    private ResponseCode(Integer code,String info){
        this.code = code;
        this.info = info;
    }
    public Integer getCode() {
        return code;
    }
    public String getInfo() {
        return info;
    }
}
